<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>New Web Project</title>
		<script type="text/javascript" src="lib/main.js"></script>
		<script type="text/javascript" src="lib/gears_init.js"></script>
        <script type="text/javascript">
            var geo = google.gears.factory.create('beta.geolocation');
            
            function updatePosition(position){
				console.log(position);             
				testCoords(position.latitude, position.longitude, position.gearsAddress);
            }
            function handleError(positionError){
                alert('Attempt to get location failed: ' + positionError.message);
            }
            
            geo.getCurrentPosition(updatePosition, handleError, {gearsRequestAddress: true, enableHighAccuracy: true, gearsAddressLanguage: 'ru'});
        </script>
    </head>
    <body>
        <div id="main"></div>
    </body>
</html>
